package cn.yz.fresh.dao.impl;

import cn.yz.fresh.dao.IGradeDAO;
import cn.yz.fresh.pojo.Grade;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Kim昌完 on 2017/8/30.
 */
@Repository
public class GradeDAOImpl extends SqlSessionDaoSupport implements IGradeDAO{
    @Override
    public List<Grade> queryAllGrade() {
        return super.getSqlSession().selectList("cn.yz.fresh.pojo.Grade.queryAllByGradeId");
    }
}
